package test1;
//成员内部类
public class Outer {
    private static int i = 1;
    private int j = 10;
    private int k = 20;
    public static void outer1() { }
    public void outer2() { }
    class Inner {
        int j = 100;
        int inner_i = 1;
        void inner1() {
            System.out.println(i);
            System.out.println(j);
            System.out.println(this.j);
            System.out.println(Outer.this.j);
            System.out.println(k);
            outer1();
            outer2();
        }
    }
    public void outer3() {
        Inner inner = new Inner();
        inner.inner1();
    }
    public static void outer4() {
        Outer out = new Outer();
        Inner inner = out.new Inner();
        inner.inner1();
    }
    public static void main(String[] args) {
        //outer4();//该语句的输出结果与以下3句输出结果一样
        Outer out = new Outer();
        Inner outin = out.new Inner();
        outin.inner1();
    }
}
